<template>
  <div class="recommend">
    <div v-for="(item, index) in recommend" :key="index" class="recommend-item">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  name: 'RecomMend',
  props: {
    recommend: {
      type: Array,
      default() {
        return []
      }
    }
  },
  components: { 

  },
  data() {
    return {
      
    };
  },
  mounted() {
    console.log(this.recommend);
  },
  methods: {
    
  },
};
</script>

<style scoped>
.recommend {
  display: flex;
  text-align: center;
  border-bottom: 10px solid #eee;
  padding-bottom: 20px;
}
.recommend-item{
  flex: 1;
}
.recommend-item a img {
  width: 80%;
  height: auto;
  margin: 10px 0;
}

</style>